<?php
class Control_AnnounceData_getNameKey {

	function getNameKey($fileName) {	
		
		// $fileName = "fox_android_baidu_2015-06-01_19-07-44.txt";
		$arr = explode(".", $fileName);
		$names = $arr[0];
		$namesArr =  explode("_", $names);
		$namesKey = $namesArr[1] . "_" .$namesArr[2];
		
		return $namesKey;
	}
}